namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class ForumLogMap : ClassMap<ForumLogDataModel>
    {
        #region Constructors and Destructors

        public ForumLogMap()
        {
            this.Table("ForumLog");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ID");
            this.Map(x => x.UserId).Not.Nullable().Column("UserId");
            this.Map(x => x.Action).Not.Nullable().Column("Action");
            this.Map(x => x.Date).Not.Nullable().Column("Date");
            this.Map(x => x.IP).Not.Nullable().Column("IP");
            this.Map(x => x.Url).Not.Nullable().Column("Url");
            this.Map(x => x.ItemID).Not.Nullable().Column("ItemID");
            this.Map(x => x.ItemType).Not.Nullable().Column("ItemType");
        }

        #endregion
    }
}